package com.cjl.common.enums;


import lombok.AllArgsConstructor;

/**
 * @author cjl
 * @version v1.0
 * @description http请求的状态码
 * @createTime 2023/2/7 17:40
 */

@AllArgsConstructor
public enum HttpEnums {
    SUCCESS(200,"成功"),
    PARAMS_INVALID(601,"参数无效"),
    EATER_ALREADY_EXIST(602,"食客已存在"),
    EATER_NOT_EXIST(603,"食客不存在"),
    DB_UPDATE_DATA_ERROR(604,"数据库更新数据出错"),
    UN_AUTHORIZE(605,"未授权身份"),
    DB_PASSWORD_ERROR(606,"密码错误"),
    FOOD_ALREADY_EXIST(607,"菜品已存在"),
    FOOD_NOT_EXIST(608,"该菜品不存在"),
    HOST_ALREADY_EXIST(609,"店家已存在"),
    HOST_NOT_EXIST(610,"该店家已不存在"),
    ADMIN_ALREADY_EXIST(611,"管理员已存在"),
    ADMIN_NOT_EXIST(612,"该管理员不存在");

    private  Integer code;
    private  String message;

    public Integer getCode(){
        return this.code;
    }
    public String getMessage(){
        return this.message;
    }

}
